package com.nit.tools;

import lombok.extern.slf4j.Slf4j;

/**
 * ClassLoader工具
 *
 * @Auth: 逆天开源-逍遥哥哥
 * @link: 1715656022@qq.com
 * @Date: 2023-07-26
 */
@Slf4j
public class NitClassLoaderTools {
    public static boolean isClassLoaded(String clazzName) {
        if (NitStringTools.isBlank(clazzName)) {
            return false;
        }
        try {
            Class.forName(clazzName);
            return true;
        } catch (ClassNotFoundException e) {
            log.warn("未找到类: {}", clazzName);
            return false;
        }
    }
}
